const API = require('wechat-api');
let api = new API(config.weChat.AppID,config.weChat.AppSecret);
exports.initWeChat = function () {
    api.createMenu(config.weChatMenu,function (err,result) {
        console.log('=createMenu err=',err);
        console.log('=createMenu result=',result);
    });
};
exports.getAccessToken = function () {
    api.getAccessToken(function (err,result) {
        console.log('=getAccessToken err=',err);
        console.log('=getAccessToken result=',result);
    })
}
exports.api = api;